import {useSelector as UseReduxSelector, TypedUseSelectorHook} from 'react-redux'
import {RootState} from '../redux/store'
// 调用了旧的useSelector,给它加上了符合项目要求的类型定义RootState
export const useSelector: TypedUseSelectorHook<RootState> = UseReduxSelector